<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Country extends Model
{
    protected $table = 'countries';

    public function articles(){
        return $this->morphedByMany(Article::class, 'countryable', 'countryables');
    }

    public function coupons(){
        return $this->morphedByMany(Coupon::class, 'countryable', 'countryables');
    }

}